<%@page language="java" isELIgnored="false" pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<body>
<form action="emp4" method="post">
    <input type="hidden" name="type" value="search"/>
    <table border="1" align="center" width="80%">
        <tr>
            <th>姓名</th>
            <td><input type="text" name="ename"/></td>
        </tr>
        <tr>
            <th>职位</th>
            <td>
                <c:forEach var="job" items="${ALL_JOB}">
                    <input type="checkbox" name="jobs" value="${job}"/>${job}
                </c:forEach>
            </td>
        </tr>
        <tr>
            <th>上司</th>
            <td>
                <select name="mgr">
                    <option value="-1">-请选择-</option>
                    <c:forEach var="mgr" items="${ALL_MGR}">
                    <option value="${mgr}" >${mgr}
                        </c:forEach>
                </select>
            </td>
        </tr>
        <tr>
            <th>时间</th>
            <td>
                <input type="date" name="beginDate"/>
                -
                <input type="date" name="endDate"/>
            </td>
        </tr>
        <tr>
            <th>工资</th>
            <td>
                <input type="number" name="minSal"/>
                -
                <input type="number" name="maxSal"/>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <button>搜索</button>
            </td>
        </tr>
    </table>
</form>
<table border="1" align="center" width="80%">
    <tr>
        <th>序号</th>
        <th>姓名</th>
        <th>职位</th>
        <th>时间</th>
        <th>工资</th>
        <th>奖金</th>
    </tr>
    <c:forEach var="ei" items="${ALL_EMP_LIST}" varStatus="j">
        <tr>
            <th>${j.count}</th>
            <th>${ei.ename}</th>
            <th>${ei.job}</th>
            <th>${ei.hireDate}</th>
            <th>${ei.sal}</th>
            <th>${ei.comm}</th>
        </tr>
    </c:forEach>
</table>
</body>
</html>